package com.atguigu.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient //nacos注册注解
@EnableFeignClients //模块之间的调用，先进行注册到nacos，该注解只添加到调用端，表示需要调用注册到nacos里面的模块
@ComponentScan(basePackages = {"com.atguigu"})//为swagger服务，组件扫描器,扫描service_base中的配置类
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class,args);
    }
}
